package org.jeecg.glr.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.jeecg.glr.entity.GlrLightType;

/**
 * @Description: 路灯类型
 * @Author: jeecg-boot
 * @Date:   2020-03-05
 * @Version: V1.0
 */
public interface GlrLightTypeMapper extends BaseMapper<GlrLightType> {

    @Select("select * from glr_light_type where code=#{type}")
    public GlrLightType getLightTypeByCode(String type);
    @Select("select max(code)as code from glr_light_type ")
    String  getMaxLightTypeCode();
}
